package com.example.demo.order.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.example.demo.order.entity.OCardBatch;
import com.example.demo.order.mapper.OCardBatchMapper;
import com.example.demo.order.service.OCardBatchService;
import com.example.demo.util.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 卡券批次表; 服务实现类
 * </p>
 *
 * @author 涛
 * @since 2024-08-01
 */
@Service("oCardBatchService")
public class OCardBatchServiceImpl extends ServiceImpl<OCardBatchMapper, OCardBatch> implements OCardBatchService {

    @Autowired
    private OCardBatchMapper oCardBatchMapper;

    @Override
    public Result<?> getCardListByUserId(Page<OCardBatch> page, Integer id) {
        return Result.ok(oCardBatchMapper.getCardListByUserId(page,id));
    }
}
